home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / thesrc10.zip / MEMTRACK.H < prev    next >
C/C++ Source or Header  |  1992-08-04  |  638b  |  20 lines

  1. /* MEM.H  -- ** Copyright (c) 1990, Cornerstone Systems Group, Inc. */
  2.  
  3. #ifdef MEMTRACK
  4.  
  5. void *memCalloc();
  6. void  memFree();
  7. void *memMalloc();
  8. void *memRealloc();
  9. void *memStrdup();
  10.      /* The next two functions are only called by the other mem functions   */
  11. void memTrack_alloc();
  12. int  memTrack_free();
  13. #else
  14. #define  memCalloc(NUM,BYTES_EACH,TAG)       calloc(NUM,BYTES_EACH)
  15. #define  memFree(POINTER,TAG)                free(POINTER)
  16. #define  memMalloc(BYTES,TAG)                malloc(BYTES)
  17. #define  memRealloc(OLD_POINTER,BYTES,TAG)   realloc(OLD_POINTER,BYTES)
  18. #define  memStrdup(STRING, TAG)              strdup(STRING)
  19. #endif
  20.